import pytest
import allure
import os
from config.config import BaseConfig

if __name__ == '__main__':
    pytest.main()

    split = 'allure ' + 'generate ' + 'result/xml ' + '-o ' + 'result/html ' + '--clean'
    path = str(BaseConfig.ROOT)
    os.system('cd '+path)

    os.system(split)

    print(split)
    print(path)